<template>
  <nav>
    <ul>
      <li>
        <router-link to="/">博客</router-link>
        <router-link to="/add">写博客</router-link>
        <router-link to="/lea">测试学习</router-link>
      </li>
    </ul>
  </nav>
</template>
<script>
export default {
  name: "blog-header"
};
</script>

<style scoped>
ul{
    list-style: none;
    text-align: center;
    margin: 0;
}
li{
    display: inline-block;
    margin: 0 10px;
}
router-link-active {
  background-color: rgba(0255, 255, 255, 0.8);
  color: #444;
}
a{
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 7px;
}
a:hover{
    color: #ff4200;
}
nav{
    position: fixed;
    width: 100%;
    background-color: crimson;
    padding: 30px 0;
    top: 0px;
}
.router-link-active{
    background-color: rgba(255,255,255,0.8);
    color: #444;
}
</style>